package com.ph.irp.base.verifyproject.dao;
import java.util.List;
import com.ph.irp.model.PBaseVerifyprojectDepartment;

public interface PBaseVerifyprojectDepartmentDao {
	public boolean isSame(String departmentCode)throws Throwable;

	public void addDepartment(PBaseVerifyprojectDepartment department)throws Throwable;
	
	public void updateDepartment(PBaseVerifyprojectDepartment department)throws Throwable;
	
	public void delateDepartment(int departmentId)throws Throwable;
	
	public List<PBaseVerifyprojectDepartment> getAllDepartment()throws Throwable;
	
	public PBaseVerifyprojectDepartment getDepartmentById(int departmentId)throws Throwable;
	
	@SuppressWarnings("unchecked")
	public List getDepartmentByName(String name)throws Throwable;
	
	@SuppressWarnings("unchecked")
	public List getDepartmentByCode(String code)throws Throwable;
	
	@SuppressWarnings("unchecked")
	public List getDepartmentByCodeAndName(String code,String name)throws Throwable;
	
}
